package com.eckey.lab.thread;

import com.eckey.lab.entity.Log;
import com.eckey.lab.service.LogService;

/**
 * @Description: 日志保存线程
 * @Author Marin
 * @Date 2021/4/29 18:44
 */
public class SaveSystemLogThread implements Runnable {

    private Log log;

    private LogService logService;

    public SaveSystemLogThread(Log log, LogService logService) {
        this.log = log;
        this.logService = logService;
    }

    @Override
    public void run() {
        logService.insert(log);
    }
}
